Skip to content

Conversation

@amnir
Copy link

@amnir amnir commented Nov 13, 2025

⚠️ Pre Checklist

Please complete ALL items in this checklist, and remove before submitting

  • I have read through the Contributing Documentation.
  • I have added relevant tests.
  • I have added relevant documentation.
  • I will add labels to the PR, such as pr-type/bug-fix, pr-type/feature-development, etc.

Summary

Make config-ui dev server accessible outside the container when started by listening on 0.0.0.0 with the --host flag.
Also ensure it uses port 4000 or fails to start with --strictPort to prevent silent port change that will mismatch with the exported dev container port.

In addition, it makes Grafana accessible from dev container' config-ui by making the Grafana origin and origin change configurable and injected via the dev container environment variables.

web socket proxying (ws) is enabled regardless of dev container or not as it allows for features like grafana query auto-complete to work via the dev server proxy.

Does this close any open issues?

Closes #8638

when started by listening on 0.0.0.0 with the `--host` flag.
Also ensure it uses port 4000 or fails to start with `--strictPort`
to prevent silent port change that will mismatch with the exported dev container port.
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. component/config-ui This issue or PR relates to config-ui pr-type/feature-development This PR is to develop a new feature labels Nov 13, 2025
@amnir amnir changed the title Make config-ui dev server accessible outside the container fix(devcontainer): make Config UI accessible from host (add --host to Vite start script) Nov 13, 2025
@amnir amnir marked this pull request as draft November 14, 2025 07:41
@amnir amnir changed the title fix(devcontainer): make Config UI accessible from host (add --host to Vite start script) fix(devcontainer): make Config UI and Grafana accessible from host when using devcontainers Nov 14, 2025
@amnir amnir marked this pull request as ready for review November 14, 2025 14:15
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. component/ext This issue or PR relates to external components, such as Grafana pr-type/bug-fix This PR fixes a bug and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Nov 14, 2025
@rbstp
Copy link
Contributor

rbstp commented Nov 16, 2025

I can confirm the changes work well in devcontainer to expose Grafana and the UI on port 4000.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/config-ui This issue or PR relates to config-ui component/ext This issue or PR relates to external components, such as Grafana pr-type/bug-fix This PR fixes a bug pr-type/feature-development This PR is to develop a new feature size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Question][Devcontainer] config-ui and grafana not accessible from outside the dev container

2 participants